package cn.yaboya.sentinel;

import cn.yaboya.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class fallbackMethodFactory {
    // 熔断降级，参数和返回值与源方法一致
    public User fallbackMethod(@PathVariable Long id){

        return new User(id,"zs:"+id, "熔断托底了");
    }
}
